﻿// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
//
// 本项目主要遵循 MIT 许可证和 Apache 许可证（版本 2.0）进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
//
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动！任何基于本项目二次开发而产生的一切法律纠纷和责任，我们不承担任何责任！

namespace Admin.NET.Application;

/// <summary>
/// 车辆求购信息表输出参数
/// </summary>
public class AppVehiclePurchaseOutput
{
    /// <summary>
    /// 主键Id
    /// </summary>
    public long Id { get; set; }    
    
    /// <summary>
    /// 买家Id
    /// </summary>
    public long BuyerId { get; set; }

    /// <summary>
    /// 买家头像
    /// </summary>
    public string BuyerAvatar { get; set; }

    /// <summary>
    /// 买家Id 描述
    /// </summary>
    public string BuyerFkDisplayName { get; set; } 
    
    /// <summary>
    /// 上牌地区Id
    /// </summary>
    public string RegionId { get; set; }

    /// <summary>
    /// 上牌地区Id 描述
    /// </summary>
    public string RegionFkDisplayName { get; set; }

    /// <summary>
    /// 车源地地区Id(市级)
    /// </summary>
    public string SourceRegionId { get; set; }

    /// <summary>
    /// 车源地地区Id(市级) 描述
    /// </summary>
    public string SourceRegionFkDisplayName { get; set; }

    /// <summary>
    /// 类型
    /// </summary>
    public VehicleTypeEnum Type { get; set; }

    /// <summary>
    /// 类型
    /// </summary>
    public string TypeName { get; set; }

    /// <summary>
    /// 期望品牌
    /// </summary>
    public long? BrandId { get; set; }    
    
    /// <summary>
    /// 期望品牌 描述
    /// </summary>
    public string BrandFkDisplayName { get; set; } 
    
    /// <summary>
    /// 期望车型
    /// </summary>
    public long? ModelId { get; set; }    
    
    /// <summary>
    /// 期望车型 描述
    /// </summary>
    public string ModelFkDisplayName { get; set; } 
    
    /// <summary>
    /// 外观颜色
    /// </summary>
    public ColorEnum ExteriorColor { get; set; }

    /// <summary>
    /// 外观颜色
    /// </summary>
    public string ExteriorColorName { get; set; }

    /// <summary>
    /// 内饰颜色
    /// </summary>


    /// <summary>
    /// 内饰颜色
    /// </summary>
    public ColorEnum InteriorColor { get; set; }

    /// <summary>
    /// 内饰颜色
    /// </summary>
    public string InteriorColorName { get; set; }

    /// <summary>
    /// 选装配置
    /// </summary>
    public string OptionalConfigs { get; set; }    
    
    /// <summary>
    /// 全款预算（万元）
    /// </summary>
    public decimal? FullPaymentBudget { get; set; }    
    
    /// <summary>
    /// 分期首付（万元）
    /// </summary>
    public decimal? InstallmentDownPayment { get; set; }    
    
    /// <summary>
    /// 月供预算（元）
    /// </summary>
    public decimal? MonthlyPayment { get; set; }    
    
    /// <summary>
    /// 是否接受旧车置换
    /// </summary>
    public bool AcceptTradeIn { get; set; }    
    
    /// <summary>
    /// 车况要求
    /// </summary>
    public VehicleConditionEnum ConditionRequirement { get; set; }

    /// <summary>
    /// 车况要求
    /// </summary>
    public string ConditionRequirementName { get; set; }

    /// <summary>
    /// 期望上牌年份（开始）
    /// </summary>
    public int? RegisterYearFrom { get; set; }    
    
    /// <summary>
    /// 期望上牌年份（结束）
    /// </summary>
    public int? RegisterYearTo { get; set; }    
    
    /// <summary>
    /// 最低预算
    /// </summary>
    public decimal? BudgetMin { get; set; }    
    
    /// <summary>
    /// 最高预算
    /// </summary>
    public decimal? BudgetMax { get; set; }    
    
    /// <summary>
    /// 期望里程数（万公里）
    /// </summary>
    public decimal? ExpectedMileage { get; set; }    
    
    /// <summary>
    /// 补充要求
    /// </summary>
    public string AdditionalRequirements { get; set; }    
    
    /// <summary>
    /// 备注
    /// </summary>
    public string? Remark { get; set; }    
    
    /// <summary>
    /// 状态
    /// </summary>
    public PurchaseStatusEnum Status { get; set; }

    /// <summary>
    /// 竞拍人数
    /// </summary>
    public int BidCount { get; set; }

    /// <summary>
    /// 租户Id
    /// </summary>
    public long? TenantId { get; set; }    
    
    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime? CreateTime { get; set; }    
    
    /// <summary>
    /// 更新时间
    /// </summary>
    public DateTime? UpdateTime { get; set; }    
    
    /// <summary>
    /// 创建者Id
    /// </summary>
    public long? CreateUserId { get; set; }    
    
    /// <summary>
    /// 创建者姓名
    /// </summary>
    public string? CreateUserName { get; set; }    
    
    /// <summary>
    /// 修改者Id
    /// </summary>
    public long? UpdateUserId { get; set; }    
    
    /// <summary>
    /// 修改者姓名
    /// </summary>
    public string? UpdateUserName { get; set; }    
    
    /// <summary>
    /// 软删除
    /// </summary>
    public bool IsDelete { get; set; }    

    public List<AppVehicleBidDto> appVehicleBidDtos { get; set; }

    /// <summary>
    /// 是否发布着
    /// </summary>
    public bool IsSelf { get; set; }

    /// <summary>
    /// 头像
    /// </summary>
    public string? Avatar { get; set; }

}

/// <summary>
/// 车辆求购信息表数据导入模板实体
/// </summary>
public class ExportAppVehiclePurchaseOutput : ImportAppVehiclePurchaseInput
{
    [ImporterHeader(IsIgnore = true)]
    [ExporterHeader(IsIgnore = true)]
    public override string Error { get; set; }
}
